package homework.chapter12;

public class Person<T> {
    private String name;
    private T mate;

    public Person(String name, T mate) {
        this.name = name;
        this.mate = mate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public T getMate() {
        return mate;
    }

    public void setMate(T mate) {
        this.mate = mate;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", mate=" + mate +
                '}';
    }
}
